package io.babystar.modules.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.segments.MergeSegments;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.babystar.modules.business.dao.BaseVipDao;
import io.babystar.modules.business.entity.BaseVipEntity;
import io.babystar.modules.business.entity.CWRefundEntity;
import io.babystar.modules.business.service.BaseVipService;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("baseVipService")
public class BaseVipServiceImpl extends ServiceImpl<BaseVipDao, BaseVipEntity> implements BaseVipService {


    public  List<BaseVipEntity> getVipList(Integer businessId){
        return this.baseMapper.selectList(
                new QueryWrapper<BaseVipEntity>()
                        .eq("business_id",businessId)
        );
    }

}